import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import Qt5Compat.GraphicalEffects
import "components"

ApplicationWindow {
    visible: true
    width: 1000
    height: 600
    title: qsTr("文件对话框示例")

    Rectangle {
        anchors.fill: parent
        color: "#f5f5f5"

        GridLayout {
            anchors {
                fill: parent
                margins: 20
            }
            columns: 2
            rowSpacing: 20
            columnSpacing: 20

            SimpleFileDialog {
                Layout.fillWidth: true
                Layout.fillHeight: true
                Layout.preferredHeight: 250
            }

            ImageFileDialog {
                Layout.fillWidth: true
                Layout.fillHeight: true
                Layout.preferredHeight: 250
            }

            MultiFileDialog {
                Layout.fillWidth: true
                Layout.fillHeight: true
                Layout.preferredHeight: 250
            }

            SaveFileDialog {
                Layout.fillWidth: true
                Layout.fillHeight: true
                Layout.preferredHeight: 250
            }
        }
    }
}
